/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.example.training.persistence;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import org.jboss.seam.annotations.Name;

/**
 *
 * @author AkshatJ
 */
@Entity
@Name("testcenter")
@Table(name = "testcenter")
@NamedQueries({@NamedQuery(name = "Testcenter.findAll", query = "SELECT t FROM Testcenter t"), @NamedQuery(name = "Testcenter.findByCenterid", query = "SELECT t FROM Testcenter t WHERE t.centerid = :centerid"), @NamedQuery(name = "Testcenter.findByCentername", query = "SELECT t FROM Testcenter t WHERE t.centername = :centername"), @NamedQuery(name = "Testcenter.findByOs", query = "SELECT t FROM Testcenter t WHERE t.os = :os")})
public class Testcenter implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "centerid")
    private Short centerid;

    @Column(name = "centername")
    private String centername;
    
    @Column(name = "os")
    private String os;

    public Short getCenterid() {
        return centerid;
    }

    public void setCenterid(Short centerid) {
        this.centerid = centerid;
    }

    public String getCentername() {
        return centername;
    }

    public void setCentername(String centername) {
        this.centername = centername;
    }

    public String getOs() {
        return os;
    }

    public void setOs(String os) {
        this.os = os;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (centerid != null ? centerid.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Testcenter)) {
            return false;
        }
        Testcenter other = (Testcenter) object;
        if ((this.centerid == null && other.centerid != null) || (this.centerid != null && !this.centerid.equals(other.centerid))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.example.training.persistence.Testcenter[centerid=" + centerid + "]";
    }

}
